package com.feign.compont;

import com.feign.interf.EurekaClientFeign;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
/** 熔断时候 快速返回方法*/
public class HiHystrix implements EurekaClientFeign {
    @Override
    public String sayIndexFromClientEureka(String name){
        return "hi "+name+ " , sorry , error !";
    }
}
